﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GiaoDienClient/Main.master" AutoEventWireup="true"
    CodeFile="TrangThongTinChiTietDiem.aspx.cs" Inherits="GiaoDienClient_TrangThongTinChiTietDiem" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/C1lient.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHBody" runat="Server">
    <div style="width: 100%; height: auto; margin: 0px auto;">
        <div style="width: 1004px; height: auto; margin: 5px auto auto; margin-bottom: 10px;">
            <%-- <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">--%>
            <div>
                <span style="font-size: 17px;">Xin chào:</span>
                <asp:Label runat="server" ID="lblTenHS" ForeColor="Blue" Font-Size="20px"></asp:Label>
                <asp:Label runat="server" ID="lblMaHS" Visible="false"></asp:Label>
                <asp:Label runat="server" ID="lblLop"></asp:Label>
            </div>
            <div style="width: auto; margin-top: 10px;">
                <asp:TabContainer ID="TabContainer1" runat="server" Width="100%" 
                    ActiveTabIndex="1">
                    <asp:TabPanel runat="server" ID="tabTTHS" HeaderText="Thông tin học sinh">
                        <ContentTemplate>
                            <div class="personal_style_form">
                                <span class="">Họ và tên:</span>
                                <asp:Label runat="server" ID="lblTen" ForeColor="blue"></asp:Label>
                            </div>
                            <div class="personal_style_form">
                                <span class="">Mã học sinh:</span>
                                <asp:Label runat="server" ID="lblMa" ForeColor="blue"></asp:Label>
                            </div>
                            <div class="personal_style_form">
                                <span class="">Ngày sinh:</span>
                                <asp:Label runat="server" ID="lblNgaySinh" ForeColor="blue"></asp:Label>
                            </div>
                            <div class="personal_style_form">
                                <span class="">Giới tính:</span>
                                <asp:Label runat="server" ID="lblGioi" ForeColor="blue"></asp:Label>
                            </div>
                            <div class="personal_style_form">
                                <span class="">Quê quán:</span>
                                <asp:Label runat="server" ID="lblQueQuan" ForeColor="blue"></asp:Label>
                            </div>
                        </ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel runat="server" ID="tabSoDiem" HeaderText="Sổ điểm">
                        <ContentTemplate>
                     
                            <div style="text-align: right;">
                                <asp:RadioButton runat="server" ID="rdoKyI" GroupName="HocKy" Text="Học kỳ I" Checked="True"
                                    OnCheckedChanged="rdoKyI_CheckedChanged" AutoPostBack="True" />
                                &nbsp;&nbsp;&nbsp;
                                <asp:RadioButton runat="server" ID="rdoKyII" GroupName="HocKy" Text="Học kỳ II" AutoPostBack="True"
                                    OnCheckedChanged="rdoKyII_CheckedChanged1" />
                                &nbsp;&nbsp;&nbsp;
                                <asp:RadioButton runat="server" ID="rdoCaNam" GroupName="HocKy" Text="Cả năm" AutoPostBack="True"
                                    OnCheckedChanged="rdoCaNam_CheckedChanged" />
                                &nbsp;&nbsp;&nbsp;
                            </div>
                            <div style="margin-top: 10px;">
                                <asp:MultiView ActiveViewIndex="0" ID="MultiView1" runat="server">
                                    <asp:View ID="View1" runat="server">
                                        <asp:GridView runat="server" ID="grDiemChiTiet" AutoGenerateColumns="False" Width="100%"
                                            AllowPaging="True" Height="28px" ShowFooter="True"
                                            ForeColor="Black">
                                            <AlternatingRowStyle BackColor="White" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="STT">
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1 %>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Môn học" SortExpression="TenMon">
                                                    <ItemTemplate>
                                                        <%#Eval("TenMon")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="M1" SortExpression="DiemMieng1">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemMieng1")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="M2" SortExpression="DiemMieng2">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemMieng2")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="M3" SortExpression="DiemMieng3">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemMieng3")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="M4" SortExpression="DiemMieng4">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemMieng4")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="M5" SortExpression="DiemMieng5">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemMieng5")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="15'1" SortExpression="Diem15_1">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem15_1")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="15'2" SortExpression="Diem15_2">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem15_2")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="15'3" SortExpression="Diem15_3">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem15_3")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="15'4" SortExpression="Diem15_4">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem15_4")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="15'5" SortExpression="Diem15_5">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem15_5")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="45'1" SortExpression="Diem45_1">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem45_1")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="45'2" SortExpression="Diem45_2">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem45_2")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="45'3" SortExpression="Diem45_3">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem45_3")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="45'4" SortExpression="Diem45_4">
                                                    <ItemTemplate>
                                                        <%#Eval("Diem45_4")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="HK" SortExpression="DiemThi">
                                                    <ItemTemplate>
                                                        <%#Eval("DiemThi")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="ĐTB" SortExpression="DTBMonHocKy">
                                                    <ItemTemplate>
                                                        <%#Eval("DTBMonHocKy")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px"
                                                ForeColor="#333333" />
                                            <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Left" />
                                            <RowStyle BackColor="#EFF3FB" BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:GridView>
                                    </asp:View>
                                    <asp:View ID="View2" runat="server">
                                        <asp:GridView runat="server" ID="grvDTBCaNam" AutoGenerateColumns="False" Width="100%"
                                            AllowPaging="True" Height="28px" ShowFooter="True"
                                            ForeColor="Black">
                                            <AlternatingRowStyle BackColor="White" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="STT">
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1 %>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Môn học" SortExpression="TenMon">
                                                    <ItemTemplate>
                                                        <%#Eval("TenMon")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Học kỳ I" SortExpression="DTBMonHocKy1">
                                                    <ItemTemplate>
                                                        <%#Eval("DTBMonHocKy1")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Học kỳ II" SortExpression="DTBMonHocKy2">
                                                    <ItemTemplate>
                                                        <%#Eval("DTBMonHocKy2")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Cả năm" SortExpression="DTBMonCaNam">
                                                    <ItemTemplate>
                                                        <%#Eval("DTBMonCaNam")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px"
                                                ForeColor="#333333" />
                                            <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Left" />
                                            <RowStyle BackColor="#EFF3FB" BorderStyle="None" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:GridView>
                                    </asp:View>
                                </asp:MultiView>
                            </div>
                            <div style="margin-top: 10px; text-align: right; margin-right: 10px;">
                                <span style="margin-right: 10px;">Điểm trung bình:<asp:Label runat="server" ID="lblDTB"
                                    ForeColor="Blue"></asp:Label>
                                </span><span style="margin-right: 10px;">Học lực:<asp:Label runat="server" ID="lblHocLuc"
                                    ForeColor="Blue"></asp:Label>
                                </span><span style="margin-right: 10px;">Hạnh kiểm:<asp:Label runat="server" ID="lblHanhKiem"
                                    ForeColor="Blue"></asp:Label>
                                </span>
                            </div>
                           
                        </ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel runat="server" ID="tabTTVP" HeaderText="Vi phạm">
                        <ContentTemplate>
                            <div style="text-align: center">
                                <asp:RadioButton runat="server" ID="rdoHocKyI" GroupName="HocKy1" Text="Học kỳ I"
                                    Checked="True" AutoPostBack="True" OnCheckedChanged="RadioButton1_CheckedChanged" />&nbsp;&nbsp;&nbsp;
                                <asp:RadioButton runat="server" ID="rdoHocKyII" GroupName="HocKy1" Text="Học kỳ II"
                                    AutoPostBack="True" OnCheckedChanged="rdoHocKyII_CheckedChanged" />&nbsp;&nbsp;&nbsp;
                                <asp:RadioButton runat="server" ID="rdoToanNam" GroupName="HocKy1" Text="Cả năm"
                                    AutoPostBack="True" OnCheckedChanged="rdoToanNam_CheckedChanged" />&nbsp;&nbsp;&nbsp;
                            </div>
                            <div style="text-align: right; margin-right: 10px; margin-bottom: 10px;">
                                <span>Số ngày nghỉ có phép:
                                    <asp:Label runat="server" ID="lblNghiCP" ForeColor="Blue"></asp:Label></span><br />
                                <span>Số ngày nghỉ không phép:
                                    <asp:Label runat="server" ID="lblNghiKP" ForeColor="Blue"></asp:Label></span><br />
                                <span>Tổng số ngày nghỉ:
                                    <asp:Label runat="server" ID="lblTongNghi" ForeColor="Blue"></asp:Label></span>
                            </div>
                            <div>
                                <asp:GridView runat="server" ID="grvLoiVP" AutoGenerateColumns="False" Width="100%"
                                    AllowPaging="True" Height="28px" ShowFooter="True" EnableModelValidation="True"
                                    ForeColor="Black">
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Lỗi vi phạm" SortExpression="TenLoiVP">
                                            <ItemTemplate>
                                                <%#Eval("TenLoiVP")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Ngày vi phạm" SortExpression="NgayVP">
                                            <ItemTemplate>
                                                <%#String.Format("{0:dd/MM/yyyy}",Eval("NgayVP")) %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Số lần vi phạm" SortExpression="SoLanVP">
                                            <ItemTemplate>
                                                <%#Eval("SoLanVP")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px"
                                        ForeColor="#333333" />
                                    <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                    </asp:TabPanel>
                    <asp:TabPanel runat="server" ID="TabPanel1" HeaderText="Thông tin GV">
                        <ContentTemplate>
                            <div style="margin-top: 10px; margin-bottom: 10px; font-size: 17px;">
                                Thông tin giáo viên chủ nhiệm</div>
                            <div>
                                <div>
                                    <div class="personal_style_form">
                                        <span class="">Họ và tên:</span>
                                        <asp:Label runat="server" ID="lblTenGV" ForeColor="Blue"></asp:Label>
                                        <asp:Label runat="server" ID="lblMaGVCN" Visible="False"></asp:Label>
                                    </div>
                                    <div class="personal_style_form">
                                        <span class="">Địa chỉ:</span>
                                        <asp:Label runat="server" ID="lblDiaChi" ForeColor="Blue"></asp:Label>
                                    </div>
                                    <div class="personal_style_form">
                                        <span class="">Số điện thoại:</span>
                                        <asp:Label runat="server" ID="lblSDT" ForeColor="Blue"></asp:Label>
                                    </div>
                                    <div class="personal_style_form">
                                        <span class="">Email:</span>
                                        <asp:Label runat="server" ID="lblEmail" ForeColor="Blue"></asp:Label>
                                    </div>
                                    <div class="personal_style_form">
                                        <span class="">Gửi ý kiến:</span>
                                        <asp:ImageButton runat="server" ID="ibtYKien" ImageUrl="~/Icon/chat_2 - Copy.ico"
                                            Height="30px" OnClick="ibtYKien_Click" />
                                    </div>
                                </div>
                            </div>
                            <div style="margin-top: 10px; margin-bottom: 10px; font-size: 17px;">
                                Thông tin giáo viên bộ môn</div>
                            <div>
                                <asp:GridView runat="server" ID="gridGiaoVien" AutoGenerateColumns="False" Width="100%"
                                    AllowPaging="True" Height="28px" ShowFooter="True"
                                    ForeColor="Black">
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="STT">
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Môn học" SortExpression="TenMon">
                                            <ItemTemplate>
                                                <%#Eval("TenMon")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Giáo viên">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblMaGV" Visible="false" Text='<%#Bind("MaCanBoGV") %>'></asp:Label>
                                                <%#Eval("TenCanBo")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Đia chỉ" SortExpression="DiaChi">
                                            <ItemTemplate>
                                                <%#Eval("SDT")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="ĐT liên hệ" SortExpression="SDT">
                                            <ItemTemplate>
                                                <%#Eval("SDT")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Email" SortExpression="Email">
                                            <ItemTemplate>
                                                <%#Eval("Email")%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Gửi ý kiến">
                                            <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="imgYKien" ImageUrl="~/Icon/chat_2 - Copy.ico"
                                                    Height="30px" PostBackUrl='<%#"~/GiaoDienClient/TrangYKienPhuHuynh.aspx?MaCanBoGV="+Eval("MaCanBoGV")+"&TenCanBoGV="+Eval("TenCanBo") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px"
                                        ForeColor="#333333" />
                                    <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>
            </div>
            <div style="margin-top:10px;font-size:20px;padding-left:20px;">
                Thông tin ý kiến phản hồi
            </div>
            <div style="width: auto; margin-top: 10px;">
                <asp:Panel runat="server" ID="pnl1">
                    <asp:DataList runat="server" ID="dtlYKien" Width="100%" 
                        onitemdatabound="dtlYKien_ItemDataBound">
                        <ItemTemplate>
                            <table style="margin-top: 5px; width: 100%">
                                <tr>
                                    <td style="width: 100px; border: 0.3px solid #D3D3D3;">
                                        <img src="../images/dialog_question.ico" width="85px" height="98px" />
                                    </td>
                                    <td valign="top" style="width: 100%; border: 0.3px solid #D3D3D3; height: 100px;background-color:#E0FFFF">
                                        <div align="left" style="margin: 2px; color: #000; float: left; height: 16px; width: 80%">
                                            <a>
                                                <asp:Label runat="server" ID="lblMaTin1"  Text='<%#Bind("MaTin") %>'></asp:Label>
                                                <%# Eval("TieuDe") %></a>
                                            <div style="clear: both">
                                            </div>
                                            <div>
                                                <span style="width: 100%">=>Gửi giáo viên
                                                    <%# Eval("TenCanBo") %>
                                                </span>
                                            </div>
                                            <div style="height: 16px; float: left;">
                                                <span style="color: #000; font-size: 10px">
                                                    <%# Eval("NoiDungYKien") %>
                                                </span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" colspan="3">
                                        <div class="border">
                                            <span></span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 100px">
                                    </td>
                                    <td>
                                        <asp:DataList runat="server" ID="dtlYKienGV" Width="100%">
                                            <ItemTemplate>
                                                <table>
                                                    <tr>
                                                        <td style="width: 100px;border: 0.3px solid #D3D3D3;">
                                                            <img src="../images/giaovien.png" width="85px" height="98px" />
                                                        </td>
                                                        <td valign="top" style="width: 100%; border: 0.3px solid #D3D3D3; height: 100px;background-color:#E0FFFF">
                                                            <div align="left" style="margin: 2px; color: #000; float: left; height: 16px">
                                                                <a>
                                                                    <%# Eval("TieuDe") %></a>
                                                                <div style="clear: both">
                                                                </div>
                                                                <div>
                                                                    <span>=>
                                                                        <%# Eval("TenHS")%>
                                                                    </span>
                                                                </div>
                                                                <div style="height: 16px; float: left;">
                                                                    <span style="color: #000; font-size: 10px">
                                                                        <%# Eval("NoiDungPhanHoi")%>
                                                                    </span>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </asp:Panel>
            </div>
            <div style="margin-top: 10px">
                <span style="margin-right: 350px;">
                    <asp:ImageButton runat="server" ID="imbBack" ImageUrl="~/Icon/back.ico" Height="50px"
                        Width="100px" OnClick="imbBack_Click" />
                </span>
            </div>
            <%--  </div>
        </div>--%>
        </div>
    </div>
</asp:Content>
